
package com.filesystem.utils;

public class ResultUtil {
    public static Results success(Integer count,Object object) {
        Results result = new Results();
        result.setCode(0);
        result.setMsg("成功");
        result.setCount(count);
        result.setData(object);
        return result;
    }

    public static Results success() {
        return success(null,0);
    }

    public static Results error(Integer code, String msg) {
        Results result = new Results();
        result.setCode(code);
        result.setMsg(msg);
        result.setCount(0);
        return result;
    }
}